<include file="header" />
<script>
        KindEditor.ready(function(K) {
                window.editor = K.create('#kindeditor');
        });
</script>
<div class="main-container" id="main-container">
	<script type="text/javascript">
		try{ace.settings.check('main-container' , 'fixed')}catch(e){}
	</script>
	 <include file="Public:sidebar" />
	 <div class="main-content">
		<div class="breadcrumbs" id="breadcrumbs">
			<script type="text/javascript">
				try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
			</script>
			<ul class="breadcrumb">
				<li>
					<i class="ace-icon fa fa-home home-icon"></i>
					<a href="__MODULE__/">主页</a>
				</li>
				<li class="active">{$title}</li>
			</ul><!-- /.breadcrumb -->
		</div>	 
			<div class="page-content">
				<div class="row">
					<div class="col-md-12">
					<form action="__CONTROLLER__/editHandle" method="post" class="form-horizontal" role="form">
						<foreach name="page" item="v">
						<div class="row">
							<div class="col-md-9">
								<div class="clearfix"></div>
								<!-- 编辑器开始 -->
								<script id="container" name="content" type="text/plain"><?php echo htmlspecialchars_decode($v['content']); ?></script>						
								<script type="text/javascript" src="__PUBLIC__/ueditor/ueditor.config.js"></script>
							    <!-- 编辑器源码文件 -->
							    <script type="text/javascript" src="__PUBLIC__/ueditor/ueditor.all.js"></script>
							    <!-- 实例化编辑器 -->
							    <script type="text/javascript">
							        var ue = UE.getEditor('container', {
										initialFrameHeight :800,
									    autoHeightEnabled: true,
									    autoFloatEnabled: true,
									});
							    </script>								
								<!-- 编辑器结束 -->															
							</div>
							<div class="col-md-3">

								<div class="form-group">
									<label class="col-sm-4 control-label" for="name"> 单页名</label>

									<div class="col-sm-8">
										<input type="text" name="name" id="name" value="{$v.name}" class="form-control">
									</div>
								</div>

								<div class="space-4"></div>
									<div class="form-group">
									<label class="col-sm-4 control-label" for="slug"> 单页别名 </label>

									<div class="col-sm-8">
										<input type="text" name="slug" id="slug" value="{$v.slug}" class="form-control">
									</div>
								</div>

								<div class="space-4"></div>
								<div class="clearfix form-actions">
									<div class="row">
										<div class="col-md-6">
										<input type="hidden" name="id" value="{$v.id}">
											<button class="btn " type="reset" >
												<i class="ace-icon fa fa-undo bigger-110"></i>
												重置
											</button>								
										</div>
										<div class="col-md-6">
											<button class="btn btn-info" type="submit" style="float:right">
												<i class="ace-icon fa fa-check bigger-110"></i>
												发布
											</button>								

										</div>
									</div>
								</div>

							</div>
						</div>


						<hr>
		
					</foreach>
					</form>	
					</div>			
	
				</div>
			</div><!-- /.page-content -->
	 </div>
	<div class="footer">
		<div class="footer-inner">
			<div class="footer-content">
				<span class="bigger-120">
					Powered By <span class="blue bolder"><a href="http://www.mubansky.com" target="_blank" >SkyCMS</a></span>
					&copy; 2012-2014
				</span>

				&nbsp; &nbsp;
				<span class="action-buttons">
					<a href="#">
						<i class="ace-icon fa fa-twitter-square light-blue bigger-150"></i>
					</a>

					<a href="#">
						<i class="ace-icon fa fa-facebook-square text-primary bigger-150"></i>
					</a>

					<a href="#">
						<i class="ace-icon fa fa-rss-square orange bigger-150"></i>
					</a>
				</span>
			</div>
		</div>
	</div>

	<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
		<i class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i>
	</a>

</div>



 <include file="footer" />
















